package com.lanou3g.sockerPractice;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by dllo on 18/4/21.
 */
public class IOUtils {

    public static void closeAll(Closeable...closeables){
        if (closeables != null){
            return;
        }
        for (Closeable closeable : closeables) {
            if (closeable != null){
                try {
                    closeable.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }

        }



    }


}
